package com.wandian.utils
{
	import flash.display.BitmapData;
	import flash.display.Graphics;
	import flash.geom.Matrix;
	
	public class GDI
	{
		public static var m:Matrix=new Matrix();
		
		private static function drawBitmap(g:Graphics,x:int,y:int,w:int,h:int,bmd:BitmapData):void{
			m.tx=x
			m.ty=y
			g.beginBitmapFill(bmd,m,false,false);
			g.drawRect(x , y , w, h);
			g.endFill();
		}
		public static function drawBitmapData(g:Graphics,x:int,y:int,bmd:BitmapData):void{
			m.tx=x
			m.ty=y
			g.beginBitmapFill(bmd,m,false,false);
			g.drawRect(x , y , bmd.width, bmd.height);
			g.endFill();
		}
	}
}